import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/home/home'
import RedWineryHome from './views/home/redwine'
import RedWineContent from './views/content/redwine'
import FrozenHome from './views/home/frozen'
import FrozenContent from './views/content/frozen'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/redwine/home',
      name: 'redwinehome',
      component: RedWineryHome,
      meta: {
        title: '葡萄酒专区导航'
      }
    },
    {
      path: '/redwine/:id',
      name: 'redWineContent',
      component: RedWineContent,
      meta: {
        title: '葡萄酒专区商品'
      }
    },
    {
      path: '/frozen/home',
      name: 'frozemHome',
      component: FrozenHome,
      meta: {
        title: '冻品专区商品列表'
      }
    },
    {
      path: '/frozen/:id',
      name: 'frozenContent',
      component: FrozenContent,
      meta: {
        title: '冻品专区'
      }
    }
  ]
})
